package com.mlf.observer.demo02;

// 观察者接口
@FunctionalInterface
public interface PriceChangeListener {
    void onPriceChanged(double oldPrice, double newPrice);

//    default PriceSubscriber toSubscriber() {
//        return new PriceSubscriber(this);
//    }
}
